-- GENERATED SPELL FOR [Enraged Wraith] --


function spell0_17086(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17086', 508, 1)
end

function Sorts_17086(pUnit, Event)
local choix_sorts_17086 = math.random(0, 0)
if choix_sorts_17086 == 0 then
pUnit:RegisterEvent('spell0_17086', 1, 1)
end
end

function mob17086_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17086', math.random(1500, 3000), 1)
end

function mob17086_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17086_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17086_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17086, 1, 'mob17086_Action')
RegisterUnitEvent(17086, 2, 'mob17086_Leave')
RegisterUnitEvent(17086, 3, 'mob17086_Kill')
RegisterUnitEvent(17086, 4, 'mob17086_Die')
